home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VECTBAL2.ZIP / XRLETOOL.H < prev    next >
Text File  |  1993-09-13  |  1KB  |  50 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XRLETOOL - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;-----------------------------------------------------------------------*/
  15.  
  16. #ifndef _XRLETOOL_H_
  17. #define _XRLETOOL_H_
  18.  
  19. extern unsigned int RLE_last_buff_offs;
  20.  
  21. /* FUNCTIONS =========================================================== */
  22.  
  23. extern unsigned int x_buff_RLEncode( /* Compress data buffer               */
  24.      char far * source_buff,
  25.      char far * dest_buff,
  26.      unsigned int count);
  27.  
  28. extern unsigned int x_buff_RLE_size( /* Calculate buffer's compressed size */
  29.      char far * source_buff,
  30.      unsigned int count);
  31.  
  32.  
  33. extern unsigned int x_buff_RLDecode( /* Uncompress data buffer             */
  34.      char far * source_buff,
  35.      char far * dest_buff);
  36.  
  37. extern int x_file_RLEncode( /* Compress data buffer to file                */
  38.      int handle,
  39.      char far * src_buff,
  40.      unsigned int count);
  41.  
  42. extern int x_file_RLDecode( /* Uncompress data file                        */
  43.      int file_handle,
  44.      char far * dest_buff);
  45.  
  46.  
  47. #endif
  48.  
  49.  
  50.